#region Using

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;

using Gizmox.WebGUI.Forms;
using TVC.Layout;

#endregion

namespace TVC.Forms
{
    public partial class frmCalendar : Form
    {        
        //string sErr = "";
        public DateTime ReturnValue { get; set; }
        
        public frmCalendar()
        {
            InitializeComponent();
        }
        
        private void frmCalendar_Load(object sender, EventArgs e)
        {
            Calendar.Value = DateTime.Now;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (Calendar != null)
            {

                ReturnValue = Calendar.Value;
                DialogResult = DialogResult.OK;
                Close();
            }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }
    }
}